<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" media="screen" type="text/css" href="__THEMES__/style/layout.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
		<script type="text/javascript" src="__JS__/jQuery/plugin/troperate.js"></script>
		<script type="text/javascript">
			function showpic(event,imgsrc){	
				var left = event.pageX+20;
				var top = event.pageY+20;
				$("#preview").css({left:left,top:top,display:""});
				$("#pic_a1").attr("src",imgsrc);
			}
			// 取消预览
			function hiddenpic(){
				$("#preview").css({display:"none"});
			}
		</script>
	</head>
	<body>
		<div id="preview" style="position:absolute; display:none; " class="showpic"> <img name="pic_a1" id="pic_a1"></div>
		
		<include file="Public:position" />
		
		<div class="button">
			<input type="button" value="新增" class="submit" id="album_add" onclick="window.location.href='{:U('add',array('tag'=>$_GET['tag']))}';"  />
    	</div>
		
		<div class="a_table">
	    	<table width="100%">
				<tr style="background: #f0f7ff; font-weight: bold;">
					<td width="18" class="left_text"></td>
					<td width="60" align="center" class="left_text">编号</td>
					<td align="center" class="left_text">标题名称</td>
					<td align="center" class="left_text">分类</td>
					<td align="center" class="left_text">发布人</td>
					<td width="100" align="center" class="left_text">状态</td>
					<td width="160" align="center" class="left_text">操作</td>
				</tr>
				<volist id="vo" name="list">
				<tr rel="{$vo['id']}" class="row_color"<?php if( ( $i % 2 ) == 0 ){ ?> bgcolor="#f9f9f9"<?php } ?>>
					<td><input type="checkbox" name="ids[]" value="{$vo.id}" /></td>
					<td align="center">{$vo['id']}</td>
					<td><a href="{:U('edit?id='.$vo['id'].'&cid='.$vo['cid'].'&tag='.$_GET['tag'])}" onmouseover="showpic(event, '__PUBLIC__/{:C('DIR_UPLOAD_PATH')}/{$vo.thumb}');" onmouseout="hiddenpic();">{$vo['title']}</a></td>
					<td align="center">{$vo['cid']|getCategoryName}</td>
					<td align="center">{$vo['author']|getAuthorName}</td>
					<td align="center">{$vo['status']|getStatus}</td>
					<td align="center">
						{$vo['status']|showStatus=$vo['id']}<span class="action_line">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="{:U('edit?id='.$vo['id'].'&cid='.$vo['cid'].'&tag='.$_GET['tag'])}" class="edit_model">编辑</a><span class="action_line">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="{:U('delete?id='.$vo['id'])}" class="del_node" rel="{$vo.id}">删除</a>
					</td>
				</tr>
				</volist>
			</table>
			<div class="page">{$page}</div>
        </div>
	</body>
</html>